cmake_minimum_required(VERSION 2.8)

project(demo)
link_directories(${CMAKE_SOURCE_DIR}/lib)
set(EXE_SRC demo.cpp proto.cpp cppsproto.cpp sproto.c sprotomessage.cpp)
set(CMAKE_CXX_FLAGS "-Wall -g -O2 -std=c++11")
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR})
add_executable(demo ${EXE_SRC})